{extend name="template/pc/jinguiling/_base.html" /}

{block name="css"}
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/hui/static/h-ui/css/Validform_msg.css"/>
<style type="text/css">
	.contact-cont {
		padding: 0 160px;
	}
</style>
{/block}

{block name="main"}
<!-- 详细页 -->
<div class="contact-box">

    {include file="template/pc/jinguiling/_right.html"}

    <!-- 可变化内容 -->
    <div class="contact-cont">

        <div class="detailed-box">
            <!-- 标题 -->
            <div class="detailed-title">{$data.title}</div>
            <div class="detailed-ztitle">{:lang('Author')}：{$data.issue}&nbsp;&nbsp;&nbsp;{:lang('Create time')}：{$data.create_time}</div>
            <!-- #标题 -->

            <!-- 内容 -->
            <div class="detailed-content">{$data.center|default=''|html_entity_decode ?? ''}</div>
            <!-- #内容 -->

            <!-- 上下页 -->
            <div class="detailed-fanye">
                <div class="detailed-fanye-item detailed-fanye-pre">
                    {:lang('Previous page')}：
                    {empty name="$next.pre.id"}{:lang('No')}{else /}
                    <a  title="{$next.pre.title}" href="{:url(\''.\\think\\Request::instance()->controller().'/detailed',['id'=>$next.pre.id,'navid'=>$next.pre.cid])}">{$next.pre.title}</a>
                    {/empty}
                </div>

                <div class="detailed-fanye-item detailed-fanye-next">
                    {:lang('Next page')}：
                    {empty name="$next.next.id"}{:lang('No')}{else /}<a title="{$next.next.title}" href="{:url(\''.\\think\\Request::instance()->controller().'/detailed',['id'=>$next.next.id,'navid'=>$next.next.cid])}">{$next.next.title}</a>
                    {/empty}
                </div>
            </div>
            <!-- #上下页 -->
        </div>
		<!-- 发布留言,留言列表 -->
            <div class="leave-message">

                <!-- 发布留言 -->
                <div class="leave-message-user">

                    <div class="leave-message-title">
                        <b>网友评论</b>
                        <span>文明上网理性发言，请遵守新闻评论服务协议</span>
                    </div>

                    <!-- 已登录 -->
                    <div class="leave-user-login">
                        <div class="col-md-1">
                            <img class="img-responsive" alt="" src="__TPMPLATE__pc/jinguiling/images/pic_job2.png">
                        </div>

                        <div class="col-md-8">
                            <form name="" method="post" action="{:url('savemass')}" id="formPC">

                                <div class="leave-user-box">
                                    <div class="leave-input">
                                        <input type="text" name="name" value="" placeholder="请输入联系人名称" >
                                    </div>

                                    <div class="leave-input">
                                        <input type="number" name="tel" value="" placeholder="请输入联系人电话" >
                                    </div>

                                    <div class="leave-input">
                                        <input type="email" name="mail" value="" placeholder="请输入邮箱地址" >
                                    </div>

                                    <div class="leave-textarea">
                                        <textarea class="box-textarea" name="center" placeholder="说两句吧..."></textarea>
                                    </div>

                                    <div class="leave-login-btn">
										<input value="{$data.id ?? ''}" type="hidden" name="id">
                                        <input value="提交" type="submit" class="btn btn-success">
                                        <input value="重置" type="reset" class="btn btn-default">
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>

                </div>
                <!-- #发布留言 -->

    </div>
    <!-- #可变化内容 -->

</div>
<!-- #详细页 -->
{/block}
{block name="js"}
<!--验证-->
<script type="text/javascript" src="__STATIC__/admin/hui/lib/Validform/v5.3.2/Validform_v5.3.2_min.js"></script>

<script type="text/javascript">
    $("#formPC").Validform({
        tiptype: 3,
        label: ".form-label",
        ajaxPost: true,
        showAllError: true,
        callback: function (data) {
            if (data.status == "y") {
                setTimeout(function () {
                    window.location.reload();
                }, 1000);
            } else {
                setTimeout(function () {
                    $.Hidemsg(); //公用方法关闭信息提示框;显示方法是$.Showmsg("message goes here.");
                }, 1000);
                $("#captcha").click();
                $("[name='captcha']").val('');
            }

        }
    });

    $("#formMobile").Validform({
        tiptype: 3,
        label: ".form-label",
        ajaxPost: true,
        showAllError: true,
        callback: function (data) {
            if (data.status == "y") {
                setTimeout(function () {
                    window.location.reload();
                }, 1000);
            } else {
                setTimeout(function () {
                    $.Hidemsg(); //公用方法关闭信息提示框;显示方法是$.Showmsg("message goes here.");
                }, 1000);
                $("#captcha").click();
                $("[name='captcha']").val('');
            }

        }
    });
</script>
{/block}